home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 612 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.4 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: axl@zedat.fu-berlin.de (Axel Thimm)
  3. Newsgroups: gnu.g++.help,comp.std.c++,comp.lang.c++.moderated
  4. Subject: Streams and eof()
  5. Followup-To: comp.std.c++
  6. Date: 01 Mar 1996 17:43:16 PST
  7. Organization: FU Berlin, Fachbereich Physik, Institut fuer Theoretische Physik
  8. Approved: vandevod@cs.rpi.edu, austern@isolde.mti.sgi.com
  9. Message-ID: <199603010214.VAA16273@pleiades.cs.rpi.edu>
  10. Reply-To: axl@zedat.fu-berlin.de
  11. NNTP-Posting-Host: isolde.mti.sgi.com
  12. X-Original-Date: Thu, 29 Feb 1996 21:14:12 -5300 (EST)
  13. X-Mailer: ELM [version 2.4 PL24]
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBVAwUBMTeo90y4NqrwXLNJAQEsnAH/VOn69mpKGZea08F/Z/nUzY8e/pDV1nGE
  16.     PuyTaEbosBzCk+g9jmiHmYwT/4JsJttsO5+/AC0PxFepISSVqzDjWg==
  17.     =mC1c
  18. Originator: austern@isolde.mti.sgi.com
  19.  
  20.  
  21. [Moderator's note: Please note that this article is crossposted to
  22. three newsgroups, two of which are moderated.  The Followup-to line is
  23. set to comp.std.c++.  You should edit your newsgroups line if your
  24. reply would be more appropriate for some other group(s).  mha]
  25.  
  26.  
  27. Hello,
  28.  
  29. I have had a look in the April draft, but I think that there is a small
  30. ambiguity about eof() methods in streams.
  31. Is the eof-flag raised, when the end of the stream is reached, or when
  32. an attempt to move past this end is made? I think the most common
  33. practice is the latter, but the ANSI draft uses the former statement.
  34. Declaring the end of a stream as the first charachter _after_ the last
  35. character of the stream would rescue the expression, but wouldn't fit
  36. into a concept of an end. (Usually one thinks of an end as belonging to
  37. the whole)
  38. As I am rather convinced, that the eof is raised at an attempt to meove
  39. past the end, I'd like to ask how to check this in a binary file without
  40. having to perform a movement.
  41.  
  42. Regards,
  43.     Axel.
  44. ===
  45. Axel Thimm <axl@zedat.fu-berlin.de>
  46. Freie Universitaet Berlin
  47. ===
  48.  
  49.       [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
  50.       [  Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm  ]
  51.       [  Moderation policy: http://www.connobj.com/cpp/guide.htm  ]
  52.       [      Comments? mailto:c++-request@netlab.cs.rpi.edu       ]
  53.  
  54. ---
  55. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  56.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  57.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  58.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  59.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  60. ]
  61.